package org.gl.training.planner.dao;

import java.util.List;

import org.gl.training.planner.model.User;

/**
 * DAO class to work with User
 */
public interface UserDao {

	/**
	 * Get user from DB based on provided user name
	 * 
	 * @param username
	 *            - User name of User that should be found. Can be null
	 * @return User from DB or null in case nothing is found
	 */
	public User getUser(String username);

	/**
	 * 
	 * @param user
	 * @return
	 */
	public void save(User user);

	/**
	 * 
	 * @return
	 */
	public List<User> getUsers();

	public void delete(User user);

	public User find(Integer id);
}
